package com.aoip.telemetry.telemetry.entity.equipment;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 测站信息配置表
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/7/12 3:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("st_info_config")
@ApiModel(description = "测站信息配置表")
public class StInfoConfigEntity {
    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty("测站数据id")
    private String id;

    @TableField(value = "st_cd")
    @ApiModelProperty("测站编码")
    private String stCd;

    @TableField(value = "st_name")
    @ApiModelProperty("测站名称")
    private String stName;

    @TableField(value = "st_classification")
    @ApiModelProperty("测站分类")
    private String stClassification;

    @TableField(value = "st_classification_cn", exist = false)
    @ApiModelProperty("测站分类(中文)")
    private String stClassificationCn;

    @TableField(value = "st_type")
    @ApiModelProperty("测站类型")
    private String stType;

    @TableField(value = "st_type_cn", exist = false)
    @ApiModelProperty("测站类型(中文)")
    private String stTypeCn;

    @TableField(value = "submit_frequency")
    @ApiModelProperty("上报频率（分钟/条）")
    private String submitFrequency;

    @TableField(value = "ad_code")
    @ApiModelProperty("行政区编码")
    private String adCode;

    @TableField(value = "industry_type")
    @ApiModelProperty("测站行业类别")
    private String industryType;

    @TableField(value = "industry_type_cn", exist = false)
    @ApiModelProperty("测站行业类别(中文)")
    private String industryTypeCn;

    @TableField(value = "construction_unit")
    @ApiModelProperty("建设单位")
    private String constructionUnit;

    @TableField(value = "management_unit")
    @ApiModelProperty("管理单位")
    private String managementUnit;

    @TableField(value = "maintenance_unit")
    @ApiModelProperty("运维单位")
    private String maintenanceUnit;

    @ApiModelProperty(value = "是否有效（0：正常，1：无效）")
    @TableField("valid")
    private Integer valid;

    @ApiModelProperty(value = "是否锁定（0：有效，1：锁定）")
    @TableField("locked")
    private Integer locked;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ApiModelProperty("是否删除（0：正常，1：删除）")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
